package com.example.houduan.mapper;

import com.example.houduan.entity.Blog;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author anonymous
 * @since 2024-08-27
 */
public interface BlogMapper extends BaseMapper<Blog> {
    void  addBlog(Blog blog);
    void delByusername(String username);
    List<Blog> getTenBlog();
    List<Blog> getByusername(@Param("username") String username);
    List<Blog> getTenBlogByShunxu(int a);
    int cout();
}
